Skip to content

Fix Firo masternode registration to use external collateral instead of redundantly re-sending 1000 FIRO#1284

Draft
navidR wants to merge 1 commit intocypherstack:stagingfrom
navidR:dev/navidr/fix-masternode-start
Draft

Fix Firo masternode registration to use external collateral instead of redundantly re-sending 1000 FIRO#1284
navidR wants to merge 1 commit intocypherstack:stagingfrom
navidR:dev/navidr/fix-masternode-start

Conversation

@navidR
Copy link

@navidR navidR commented Mar 15, 2026

No description provided.

Comment on lines +565 to +566
navigator.pushNamed(
CreateMasternodeView.routeName,
Copy link
Member

@sneurlax sneurlax Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines break desktop: CreateMasternodeView is designed to be shown as a dialog

check like how masternodes_home_view.dart works:

    if (Util.isDesktop) {
      final txid = await showDialog<Object>(
        context: context,
        barrierDismissible: true,
        builder: (context) => SDialog(
          child: CreateMasternodeView(
            ...
          ),
        ),
      );
      _handleSuccessTxid(txid);
    } else {
      final txid = await Navigator.of(context).pushNamed(
        CreateMasternodeView.routeName,
        ...
    }

unawaited(wallet.refresh());
if (wallet is FiroWallet) {
try {
await wallet.refresh();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this locks the ui until done. might be acceptable if the ui doesn't otherwise update correctly but preferably the ui should refresh async somehow. not sure how that has to work tho

child: Text(
"Create masternode",
style: STextStyles.desktopH3(context),
builder: (child) => Material(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this Material wrapper is needed when navigating like this, but once you're navigating the right way, this becomes a double wrapper w/ double padding and this Material() can go away

@sneurlax
Copy link
Member

@sneurlax
Copy link
Member

as in #1288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants